#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import notice_blueprint
from api.noticeResource.noticeResource import NoticeResource
from api.noticeResource.noticeOtherResource import NoticeOtherResource

api = Api(notice_blueprint)

api.add_resource(NoticeResource, '/notice/<notice_id>', '/notice', endpoint='Notice')


@notice_blueprint.route('/notice/update/<notice_id>', methods=['PUT'], endpoint='NoticeUpdate')
def update(notice_id):
    return NoticeOtherResource.sensitive_update(notice_id)
